<%--
  Created by IntelliJ IDEA.
  User: 霞
  Date: 2024/10/9
  Time: 10:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>form</title>
</head>
<body>
<%request.setCharacterEncoding("UTF-8");%>
<form action="work.jsp" method="post">
  <table>
      <tr>
          <td>姓名:</td>
          <!--这里的name属性的值一定要和JavaBean中相应属性的名字相同-->
          <td><input type="text" name="name" value=""></td>
      </tr>
      <tr>
          <td>性别:</td>
          <td><input type="text" name="sex" value=""></td>
      </tr>
      <tr>
          <td>年龄:</td>
          <td><input type="text" name="age" value=""></td>
      </tr>
      <tr>
          <td colspan="2" align="center"><input value="提交" type="submit"></td>
      </tr>
  </table>
</form>
</body>
</html>
